package com.example.course.service.impl;

import com.example.course.bean.School;
import com.example.course.mapper.SchoolMapper;
import com.example.course.service.SchoolService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SchoolServiceImpl implements SchoolService {
    @Resource
    private SchoolMapper schoolMapper;

    @Override
    public School getSchool(Integer id) {
        return schoolMapper.selectSchoolById(id);
    }

    @Override
    public int updateSchool(School school) {
        return schoolMapper.updateSchoolById(school);
    }
}
